﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="NormAdd.aspx.cs" Inherits="CJJCH.Web.Manage.NormAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../Script/JQcheck.js" type="text/javascript"></script>
    <script src="../Calendar/WdatePicker.js" type="text/javascript"></script>
    <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        window.onload = function () {
            document.getElementById("txtTitle").focus();
        }
        function checkform() {
            if (IsNothing($("#txtTitle"), "请输入标题！")) {
                return false;
            }
            if (IsNothing($("#dropType"), "请选择类别！")) {
                return false;
            }
            if (IsNothing($("#txtPlusDate"), "请选择发布日期！")) {
                return false;
            }
            else if (checkdate($("#txtPlusDate"), "请选择正确的发布日期！"))
            {
                return false;
            }

            if (CKEDITOR.instances.txtContent.getData() == "") {
                alert("请输入内容！");
                return false;
            }
            if (IsNothing($("#txtOrder"), "请输入排序号！")) {
                return false;
            }
            else if (checkdigit($("#txtOrder"), "排序号必需是数字！")) {
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="BodyRight" style="width: 100%;">
            <div id="divtop" runat="server" style="">
                <uc:NormTop ID="NormTop1" runat="server" IIndex="2" />
            </div>
            <div runat="server" id="divHidden" visible="false">
                <asp:Label ID="lblKeyword" runat="server"></asp:Label>
                <asp:Label ID="lblOrderType" runat="server"></asp:Label>
                <asp:Label ID="lblOrderKey" runat="server"></asp:Label>
                <asp:Label ID="lblKeyType" runat="server"></asp:Label>
                <asp:Label ID="lblBeTime" runat="server"></asp:Label>
                <asp:Label ID="lblEdTime" runat="server"></asp:Label>
            </div>
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
                <tr>
                    <td width="1" height="100%" class="Left">
                    </td>
                    <td height="100%" valign="top">
                        <table cellpadding="0" cellspacing="0" class="add_table" style="width: 98%; margin: 10px auto;"
                            bgcolor="#FFFFFF">
                            <tr>
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    标题
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtTitle" runat="server" Width="300" class="InputSearch_x1"></asp:TextBox>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    来源
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtSource" runat="server" Width="300" class="InputSearch_x1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    类别
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:DropDownList ID="dropType" runat="server">
                                        <asp:ListItem Text="请选择" Value=""></asp:ListItem>
                                    </asp:DropDownList>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    发布日期
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox runat="server" class="InputSearch_x1" ID="txtPlusDate" onkeydown="return false;"
                                        onkeypress="return false;" onpaste="return false;" oncut="return false;" onfocus="new WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',isShowClear:true,maxDate:'2050-12-31'});"
                                        CssClass="EditInPut" Width="70px"></asp:TextBox>
                                    *
                                </td>
                            </tr>
                            
                            <tr style="display: none">
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    是否热点
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:CheckBox ID="chkIsHot" runat="server" />
                                </td>
                            </tr>
                            <tr style="display: none">
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    是否置顶
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:CheckBox ID="chkIsTop" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    内容
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <div id="borderCss">
                                        <textarea id="txtContent" cols="80" runat="server" rows="10"></textarea>
                                        <script type="text/javascript" language="javascript">                                            CKEDITOR.replace('txtContent', { width: '700', height: '400' });</script>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    显示排序
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtOrder" runat="server" Text="0" Width="40px" class="InputSearch_x1"></asp:TextBox>
                                    *
                                </td>
                            </tr>
                            <tr runat="server" id="trAdd">
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    继续添加
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:CheckBox ID="chkAgain" Text="选中，继续添加规范解释" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td width="100px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    操作
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:Button ID="btnSave" runat="server" Text="添 加" Style="padding: 2px 10px 3px 10px"
                                        Width="62px" CssClass="BtnSearch_x1" OnClick="btnSave_Click" />
                                    &nbsp;<asp:Button ID="btnBack" runat="server" Text="返 回" Style="padding: 2px 10px 2px 10px"
                                        Width="62px" CssClass="BtnSearch_x1" OnClick="btnBack_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="0" height="100%" class="Right">
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
